package com.ctshk.rpc.ship.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 船票信息req
 * </p>
 *
 * @author 刘蕾
 * @since 2021年03月08日
 */
@Data
@ApiModel(value = "ShipZJProductApiSubmit对象", description = "船票产品信息PageReq")
public class ShipZJProductApiSubmitReq implements Serializable {

    private static final long serialVersionUID = 1L;


    @NotNull(message = "訂單號，不允許為空")
    @ApiModelProperty(value = "訂單號")
    private String orderId;


    @NotNull(message = "訂票人姓名，不允許為空")
    @ApiModelProperty(value = "訂票人姓名")
    private String name;

    @NotNull(message = "訂票人郵件，不允許為空")
    @ApiModelProperty(value = "訂票人郵件")
    private String email;

    @NotNull(message = "是否 E-TICKET")
    @ApiModelProperty(value = "是否 E-TICKET")
    private String isETicket;

    @NotNull(message = "訂票人電話號或位址不能为空")
    @ApiModelProperty(value = "訂票人電話號或位址")
    private String address;

    @NotNull(message = "四位取票驗證碼，不允許為空")
    @ApiModelProperty(value = "四位取票驗證碼")
    private String cardNum;

    @NotNull(message = "四位取票驗證碼，不允許為空")
    @ApiModelProperty(value = "四位取票驗證碼")
    private String backArrPlaceCode;

    @NotNull(message = "出发时间不能为空")
    @ApiModelProperty(value = "出发时间")
    private LocalDate startDate;

    @ApiModelProperty(value = "出发地id")
    private String depPlaceCode;

    @ApiModelProperty(value = "到达地id")
    private String arrPlaceCode;

    @ApiModelProperty(value = "購票信息")
    private List<ShipZJProductApiSubmitTicketsReq> ShipZJProductApiSubmitTickets;


}
